<?php

namespace app\api\validation;

class Activity extends \think\Validate
{
    protected $rule = [
        'title' => 'require',
        'category_id' => 'require',
        'province' => 'require',
        'city' => 'require',
        'district' => 'require',
        'address' => 'require',
        'company_name' => 'require',
        'start_time' => 'require',
        'end_time' => 'require',
        'price' => 'require',
        'limit_count' => 'require',
    ];

    protected $message = [
        'title.require' => '标题不能为空',
        'category_id.require' => '分类不能为空',
        'province.require' => '省不能为空',
        'city.require' => '市不能为空',
        'district.require' => '区不能为空',
        'address.require' => '详细地址不能为空',
        'company_name.require' => '发起单位不能为空',
        'start_time.require' => '上课开始时间不能为空',
        'end_time.require' => '上课结束时间不能为空',
        'price.require' => '报名费用不能为空',
        'limit_count.require' => '名额限制不能为空',
    ];
}